package com.poetry.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.poetry.model.Poem;
import com.poetry.model.dto.PoemDTO;

public interface PoemService {
    List<Poem> findAll();
    Page<Poem> findAll(int page, String keyword, Long category, String sort);
    Page<Poem> findByCategory(Long categoryId, int page);
    List<Poem> findLatestPoems();
    List<Poem> findPopularPoems();
    Poem findById(Long id);
    Poem create(PoemDTO poemDTO);
    Poem update(Long id, PoemDTO poemDTO);
    void delete(Long id);
} 